﻿<{include file="header.tpl"}>
<!--引入header.tpl中的全部内容-->
<div id="content">
<{if $showIndex == true}>
<div id="head1" style="    font-size: 20px;    text-align: left;    padding: 20px;">投票已结束</div>
<{/if}> 


<{if $polls == true}>
<table border="0" cellpadding="0" cellspacing="0" class="main" width="100%">
	<tbody>
		<tr>
			<td height="77" width="30"></td>
			<td class="ttl2_1">
			<p class="att" style="font-size:14px">
			1、登陆微信才可投票,仅可投一次，最多可以给一组选手投票。 <br />
			2、选手排序为拼音顺序不分先后。<br />
			</p>
			</td>
			<td width="16"></td>
		</tr>
		<tr>
			<td></td>
			<td valign="top">
			<hr />
			<center><br />
			<br />
			<br />

<!--规则陈述部分，待改-->

<!--学号检验机制，暂时不启用
				
	<{if $isLogin == false}> 
			<input type="hidden" value="1" name="login"/>
			<{if $loginFailed == true}>
				<p>请先登陆</p>
			<{/if}>
			<form id="form1" name="form1" method="post" action="index.php?p=poll">
			<table border="0" cellpadding="0">
				<tr>
					<th><label for="id_username">学号:</label></th>
					<td><input style="height: 25px; FONT-SIZE: 20px" name="username" maxlength="30" type="text" id="id_username" size="20" /></td>
				</tr>
				
				<tr>
					<th><label for="id_sname">姓名:</label></th>
					<td><input type="text" style="height:25px;FONT-SIZE:20px" id="id_sname" name="sname" size="20"/></td>
				</tr>
			
				<tr>
					<th><label for="id_code">验证码(不区分大小写):</label></th>
					<td><input style="height:25px;FONT-SIZE:20px;width:46px" id="id_code" maxlength="30" 
					type="text" name="code" size="20" />
					<img src='getcode.php' alt='' /></td>
				</tr>	
				
    		</table>
    				
    	<p><input type="submit" class="submit"  style="width:100px;height:30px;font-size:14px" value="登陆" /></p>
		
		</form>
		
			
		
		
    <{/if}>	
    <{if $isLogin == true}>
    				<input type="hidden" value="1" name="isPoll"/>
					<form id="form2" name="form2" method="post" action="vote.php">
    				<table border="0" cellpadding="10" cellspacing="0" >
					
						<{section name=loop loop=$choice}>
							<{assign var="num" value=$choice[loop].id}>
							<{if ($smarty.section.loop.index mod 3 eq 0) and ($smarty.section.loop.index != 0)}>
    					    	</tr>
          						<tr><td colspan="9" height="14"></td></tr>
         						<tr>
							<{/if }>
							<{if $smarty.section.loop.index == 0}>
								<tr>
							<{/if}>
								<td class="md" width="230">
									<div class="text_box" style="height:500px;overflow-y:hidden; text-align:center;">
									<a href="http://wiki.ibeike.com/index.php/<{$choice[loop].name}>" target="_blank"><img src="<{$choice[loop].imglink}>" style="height:160px;width:118px" /></a>
										<h3><span class="r">得票：<{$choice[loop].vote}></span><{if $isPolled[$num] == 0}><span class="l"><input type="checkbox" name="checked[]" value="<{$choice[loop]._id}>"/></span><{/if}><span class="l"><{$choice[loop].name}></span></h3>
										<div class="clear dot_line"></div>
										<p class="comments"><{$choice[loop].comment}></p>
										<p class="words"><{$choice[loop].word}></p>

<ul id="teach_<{$choice[loop]._id}>">
</ul>

-->

<p class="send"	<a class="send" pid='<{$choice[loop]._id}>' href="####"><img alt="" src="static/images/sendwell.png" style="border:0px;"/></a>	</p>						
									</div>
            					</td>
            					<td width="25"></td>
						<{/section}>
    							<td width="14"></td>
          					</tr>
          						<tr><td colspan="9" height="14">
          						</td></tr>
        			</tbody></table>
        			<p><input type="submit" class="submit" style="width:100px;height:30px;font-size:14px" value="提交" /></p>
    	<{/if}>
				</form>
			</center>
		</table>

<{/if}>

<{if $showResult == true}>
<table border="0" cellpadding="0" cellspacing="0" class="main"
	width="100%">
	<tbody>
		<tr>
			<td height="77" width="30"></td>
			<td class="ttl2_1">
			<p class="att" style="font-size:14px">
			1、登陆微信才可投票,仅可投一次，最多可以给一组选手投票。 <br />
			2、选手排序为拼音顺序不分先后。<br />
			</p>
			</td>
			<td width="16"></td>
		</tr>
		<tr>
			<td></td>
			<td valign="top">
			<hr />
			<center><br />
			<center><h1>总参与投票人数：<{$numStu}></h1></center>
			<br />
			<br />


    				<table border="0" cellpadding="10" cellspacing="0"><tbody>
						<{section name=loop loop=$choice}>
							<{if ($smarty.section.loop.index mod 3 eq 0) and ($smarty.section.loop.index != 0)}>
    					    	</tr>
          						<tr><td colspan="9" height="14"></td></tr>
         						<tr>
							<{/if }>
							<{if $smarty.section.loop.index == 0}>
								<tr>
							<{/if}>
								<td class = "md" width="230">
									<div class="text_box" style="height:500px;overflow-y:hidden;  text-align:center;">
									<a href="http://wiki.ibeike.com/index.php/<{$choice[loop].name}>" target="_blank"><img src="<{$choice[loop].imglink}>" /></a>
										<h3><span class="r">得票：<{$choice[loop].vote}></span><span class="l"><{$choice[loop].name}></span></h3>
										<div class="clear dot_line"></div>
										<p class="comments"><{$choice[loop].comment}></p>
										<p class="words"><{$choice[loop].word}></p>

<ul id="teach_<{$choice[loop]._id}>">
</ul>


									</div>
            					</td>
            					<td width="25"></td>
						<{/section }>
    							<td width="14"></td>
          					</tr>
          						<tr><td colspan="9" height="14"></td></tr>
        			</tbody></table>
			</center>
		</table>


<{/if}>

</div>
<{include file="footer.tpl"}>
